<?php
namespace app\admin\controller;
use think\facade\Db;
class DictData extends Adm
{
	use \app\admin\traits\Curd;
    public function index()
    {
    	return $this->fetch();
    }
    public function selectByCode()
    {
        return json([
            "success"=>true,
            "code"=>200,
            "msg"=>"操作成功",
            "data"=>[
                [
                    "createTime"=>null,
                    "createBy"=>null,
                    "createName"=>null,
                    "updateTime"=>null,
                    "updateBy"=>null,
                    "updateName"=>null,
                    "remark"=>"私信",
                    "params"=>null,
                    "dataId"=>"1370411179544936448",
                    "dataLabel"=>"私信",
                    "dataValue"=>"private",
                    "typeCode"=>"sys_notice_type",
                    "isDefault"=>null,
                    "enable"=>"0"
                ],[
                    "createTime"=>null,
                    "createBy"=>null,
                    "createName"=>null,
                    "updateTime"=>null,
                    "updateBy"=>null,
                    "updateName"=>null,
                    "remark"=>"公告",
                    "params"=>null,
                "dataId"=>"1370411072367886336",
                "dataLabel"=>"公告",
                "dataValue"=>"public",
                "typeCode"=>"sys_notice_type",
                "isDefault"=>null,
                "enable"=>"0"
                ]
            ]
        ]);
        
    }
    public function getDictItems()
    {
        return [];
    }
}
